var device=request("from");
var phone=request("phone");

$(function(){
	$("body").css("min-height",$(window).height())
	$(window).resize(function(){
		$("body").css("min-height",$(window).height())
	})
	$(".download").click(function(){
	down_load()
	})
	function down_load(){
		//下载链接
		//ios
		if(navigator.userAgent.indexOf("iPhone")!=-1||navigator.userAgent.indexOf("iPad")!=-1||navigator.userAgent.indexOf("iPod")!=-1){
	    	if(navigator.userAgent.indexOf("MicroMessenger")!=-1){
	    		//如果在微信打开
	    		location.href="http://sj.qq.com/myapp/"
	    	}
	    	else{
	    		//其它方式打开
	    		location.href="https://itunes.apple.com/cn/app/%E5%90%AF%E7%A8%8B%E8%80%83%E9%A9%BE%E7%85%A7/id1279692444"
	    	}
	    }
		//安卓
	    else{
	    	if(navigator.userAgent.indexOf("MicroMessenger")!=-1){
	    		//如果在微信打开
	    		location.href="http://sj.qq.com/myapp/"
	    	}
	    	else{
	    		//其它方式打开
	    		location.href="http://app.qcjkjg.com/download"
	    	}
	    }
	}
})
